package cn.jsu.oj.dispatchServer.satellite.pojo.net;

import cn.jsu.oj.dispatchServer.satellite.annotation.PackType;

import java.io.Serializable;
import java.util.Arrays;

/**
 * net响应包
 *
 * @author shan
 * @date 2022/07/03
 */
@PackType(typeNo = 4)
public class ResponseNet extends AbsPackNet implements Serializable {
    
    private String uuid;
    private Boolean result;
    private Short command;
    private String jsonString;

    public ResponseNet() {
    }

    public ResponseNet(String uuid, Boolean result) {
        this.uuid = uuid;
        this.result = result;
    }

    public ResponseNet(String uuid, Boolean result, Short command) {
        this.uuid = uuid;
        this.result = result;
        this.command = command;
    }

    public ResponseNet(String uuid, Boolean result, String jsonString) {
        this.uuid = uuid;
        this.result = result;
        this.jsonString = jsonString;
    }

    public ResponseNet(String uuid, Boolean result, Short command, String jsonString) {
        this.uuid = uuid;
        this.result = result;
        this.command = command;
        this.jsonString = jsonString;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public Boolean getResult() {
        return result;
    }

    public void setResult(Boolean result) {
        this.result = result;
    }

    public Short getCommand() {
        return command;
    }

    public void setCommand(Short command) {
        this.command = command;
    }

    public String getJsonString() {
        return jsonString;
    }

    public void setJsonString(String jsonString) {
        this.jsonString = jsonString;
    }

    @Override
    public String toString() {
        return "ResponseNet{" +
                "uuid='" + uuid + '\'' +
                ", command=" + command +
                ", result=" + result +
                ", jsonString='" + jsonString + '\'' +
                '}';
    }
}
